#include "CollapsePanel.h"
#include "CollapsePanelplugin.h"

#include <QtPlugin>

CollapsePanelPlugin::CollapsePanelPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void CollapsePanelPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool CollapsePanelPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *CollapsePanelPlugin::createWidget(QWidget *parent)
{
    return new CollapsePanel(parent);
}

QString CollapsePanelPlugin::name() const
{
    return QLatin1String("CollapsePanel");
}

QString CollapsePanelPlugin::group() const
{
    return QLatin1String("");
}

QIcon CollapsePanelPlugin::icon() const
{
    return QIcon();
}

QString CollapsePanelPlugin::toolTip() const
{
    return QLatin1String("");
}

QString CollapsePanelPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool CollapsePanelPlugin::isContainer() const
{
    return false;
}

QString CollapsePanelPlugin::domXml() const
{
    return QLatin1String("<widget class=\"CollapsePanel\" name=\"collapsePanel\">\n</widget>\n");
}

QString CollapsePanelPlugin::includeFile() const
{
    return QLatin1String("CollapsePanel.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(CollapsePanelplugin, CollapsePanelPlugin)
#endif // QT_VERSION < 0x050000
